-- GENERATED SPELL FOR [Slitherblade Sea Witch] --


function spell0_4719(pUnit, Event) --@Blizzard,n/a--
pUnit:FullCastSpellOnTarget(8427,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4719', 8000, 1)
end

function spell1_4719(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_4719', 0, 1)
end

function Sorts_4719(pUnit, Event)
local choix_sorts_4719 = math.random(0, 1)
if choix_sorts_4719 == 0 then
pUnit:RegisterEvent('spell0_4719', 1, 1)
end
if choix_sorts_4719 == 1 then
pUnit:RegisterEvent('spell1_4719', 1, 1)
end
end

function mob4719_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4719', math.random(1500, 3000), 1)
end

function mob4719_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4719_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4719_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4719, 1, 'mob4719_Action')
RegisterUnitEvent(4719, 2, 'mob4719_Leave')
RegisterUnitEvent(4719, 3, 'mob4719_Kill')
RegisterUnitEvent(4719, 4, 'mob4719_Die')
